package _2布局;

import javax.swing.*;

public class FlowLayoutFrame extends JFrame{
	
	public FlowLayoutFrame(){
		
		System.out.println("创建jf");
		
		JPanel jp=new JPanel();
		this.add(jp);
		
		System.out.println("创建面板");
		
		for(int i=1; i<20; i++) {
			JButton btn1=new JButton(""+i);
			jp.add(btn1);
		}
		
	}

}
